Skip to content

Conversation

@alexmcroberts
Copy link
Contributor

When running this build on CodeBuild, test dependencies were not fetched, which led to PRE_BUILD errors as follows:

main_test.go:9:2: cannot find package "github.com/stretchr/testify/assert" in any of: /usr/local/go/src/github.com/stretchr/testify/assert (from $GOROOT) /go/src/github.com/stretchr/testify/assert (from $GOPATH) /codebuild/output/src283397697/src/github.com/stretchr/testify/assert

By adding the -t flag, dependencies for tests are also fetched. More information on flags available for go get are available in the documentation for the get package

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@PaulMaddox PaulMaddox merged commit aa71d7a into aws-samples:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants